package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lyl
 * @since 2018-08-05
 */
@TableName("ticket_price")
public class TicketPrice extends Model<TicketPrice> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 线路id
     */
    @TableField("actual_routeid")
    private Integer actualRouteid;
    /**
     * 票价
     */
    @TableField("ticket_price")
    private String ticketPrice;

    @TableField("remaining_num")
    private  Integer remainingnum;

    public Integer getRemainingnum() {
        return remainingnum;
    }

    public void setRemainingnum(Integer remainingnum) {
        this.remainingnum = remainingnum;
    }

    public Integer getCarfileid() {
        return carfileid;
    }

    public void setCarfileid(Integer carfileid) {
        this.carfileid = carfileid;
    }

    private  Integer carfileid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getActualRouteid() {
        return actualRouteid;
    }

    public void setActualRouteid(Integer actualRouteid) {
        this.actualRouteid = actualRouteid;
    }

    public String getTicketPrice() {
        return ticketPrice;
    }

    public void setTicketPrice(String ticketPrice) {
        this.ticketPrice = ticketPrice;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TicketPrice{" +
        "id=" + id +
        ", actualRouteid=" + actualRouteid +
        ", ticketPrice=" + ticketPrice +
        "}";
    }
}
